package com.zd.bms.bean.vo.resp;

import com.zd.common.bean.model.BmsRole;
import com.zd.common.common.enums.BmsRoleTypeEnum;
import com.zd.common.common.utils.LogUtils;

public class BmsRoleRespVo extends BmsRole{
	private String operatorName;
	
	public String getOperatorName() {
		return operatorName;
	}

	public void setOperatorName(String operatorName) {
		this.operatorName = operatorName;
	}

	public String getTypeStr() {
		LogUtils.info(BmsRoleTypeEnum.get(this.getType()).getValue());
		return BmsRoleTypeEnum.get(this.getType()).getValue();
	}

	public void setBmsRoleRespVo(BmsRole bmsRole){
		this.setId(bmsRole.getId());
		this.setName(bmsRole.getName());
		this.setType(bmsRole.getType());
		this.setOperator(bmsRole.getOperator());
		this.setScenicSpotId(bmsRole.getScenicSpotId());
	}
}
